﻿using System;
using System.Collections.Generic;
using System.Windows.Controls;
using EasySL.Controls;
namespace EasySL.UI.Controls
{
    public partial class TagCloudSample : UserControl
    {
        public TagCloudSample()
        {
            InitializeComponent();

            var tags = new List<Tag>() 
            {
                  new Tag {Name = "TVB", Count = 100},
                  new Tag {Name = "TVB背景音乐", Count = 60},
                  new Tag {Name = "新世纪音乐", Count = 80},
                  new Tag {Name = "天龙八部", Count = 10},
                  new Tag {Name = "神雕侠侣", Count = 30},
                  new Tag {Name = "NewAge", Count = 10},
                  new Tag {Name = "姬神", Count = 20},
                  new Tag {Name = "亚洲新世纪", Count = 20},
                  new Tag {Name = "久石让", Count = 30},
                  new Tag {Name = "常静", Count = 10},
                  new Tag {Name = "大神BGM", Count = 10},
                  new Tag {Name = "pacificmoon", Count = 20},
                  new Tag {Name = "和平之月", Count = 20},
                  new Tag {Name = "S E N S", Count = 40},
                  new Tag {Name = "神思者", Count = 10},
                  new Tag {Name = "寻秦记", Count = 50},
                  new Tag {Name = "喜多郎", Count = 10},
                  new Tag {Name = "人龙传说配乐", Count = 10},
                  new Tag {Name = "封神榜", Count = 20},
                  new Tag {Name = "shenmue", Count = 10},
                  new Tag {Name = "春よ来い", Count = 30},
                  new Tag {Name = "三國志", Count = 10},
                  new Tag {Name = "周杰伦", Count = 50},
                  new Tag {Name = "刘德华", Count = 30},
                  new Tag {Name = "流行歌曲", Count = 10},
                  new Tag {Name = "动漫音乐", Count = 10},
                  new Tag {Name = "郭富城", Count = 20}
            };

            TagCloud tagClould = new TagCloud(tags);
            this.LayoutRoot.Children.Add(tagClould);
        }
    }
}
